package com.yequan.polymorphism;

public class Father {


    public int num = 100;
    public int clock = 6;

    public Father() {
        System.out.println("father init");
    }

    public void work() {
        System.out.println("Father need work");
    }

    public static void sleep() {
        System.out.println("father sleep");
    }

    public void run() {
        System.out.println("father run " + num);
        openFunction();
    }

    public void getup(int clock) {
        System.out.println("father get up in " + clock);
    }

    public void openFunction(){
        System.out.println("father open function");
    }

}
